package net.easyjava.base.service;

import net.easyjava.base.bean.UserBean;

/**
 * Created by wenxiaoning on 15/12/18.
 */
public interface UserService {
    /**
     * 保存用户
     * @param userBean
     * @return
     */
    public UserBean save(UserBean userBean);

    /**
     * 根据用户id查找用户
     * @param id
     * @return
     */
    public UserBean find(String id);

    /**
     * 通过姓名密码查找用户
     * @param name
     * @param password
     * @return
     */
    public UserBean find(String name,String password);
}
